Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1 fix entrypoint schema #613

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

V1 fix entrypoint schema #613

wants to merge 2 commits into from

Conversation

andrewhand
Copy link
Contributor

Allows for registration of entrypoints without including queues in request. Test coverage added.

Copy link
Collaborator

@keithmanville keithmanville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests need to be updated to incorporate the python client.

Add the similar fix for plugins and parameters.

@@ -151,8 +151,10 @@ class EntrypointMutableFieldsSchema(Schema):
fields.Integer(),
attribute="queue_ids",
data_key="queues",
allow_none=True,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not necessary

metadata=dict(description="The queue for the entrypoint."),
load_only=True,
load_default=list(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite right, should be just list.

Part of docs showing that a callable can be used in load_default/dump_default argument: https://marshmallow.readthedocs.io/en/stable/quickstart.html#specifying-defaults

@jkglasbrenner jkglasbrenner force-pushed the v1-fix-entrypoint-schema branch from 495a710 to af63c1c Compare January 13, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] RESTapi entrypoints can't be registered without queues/plugins/parameters
3 participants